using NMock2;
using NUnit.Framework;

namespace SKBFirst.Tests
{
    [TestFixture]
    public abstract class TestBase
    {
        protected Mockery Mockery;

        [SetUp]
        public virtual void SetUp()
        {
            Mockery = new Mockery();
        }

        protected T NewMock<T>()
        {
            return Mockery.NewMock<T>();
        }

        [TearDown]
        public virtual void TearDown()
        {
            Mockery.Dispose();
        }
    }
}